package com.gxhmplan.news.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import com.gxhmplan.news.entity.News;

public interface NewsDao {
	News findNewsByNewsId(@Param("id")String id);
	List<Map<String,Object>> findNews(@Param("classify") Integer classify);
	Map<String,Object> findNewsById(@Param("id")String id);
	int addNews(News news);
	int deleteNewsById(@Param("id")String id);
	int updateNews(News news);
	List<Map<String,Object>> findNewsBySearchInfo(@Param("classify")String classify,@Param("searchInfo")String searchInfo);
	News findFrontNewsById(@Param("id")String id);
	News findAfterNewsById(@Param("id")String id);
}
